package com.eascs.admin.o2o.internal.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseOaUpdateDao;
import com.eascs.admin.o2o.internal.entity.OaLoanapply;
import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;

/**
 * 
 * 查询旧系统保证金和管理费情况
 *
 */
@Repository
public class O2oOaUpdateDao extends BaseOaUpdateDao {
	private final Logger logger = LoggerFactory.getLogger(O2oOaUpdateDao.class);
	/**
	 * 更新老系统主表	
	 * @param oaLoanapply
	 */
	public int updateLoanapply(OaLoanapply oaLoanapply){
		String sql="UPDATE EADB.O2O_LOANAPPLY T SET T.EXISTDEPOSIT=?,T.UNDEPOSIT=? WHERE T.BILLCODE=? ";
		logger.info("更新老系统主表编号:{},已收保证金:{},已退保证金:{}", oaLoanapply.getExistdeposit(),oaLoanapply.getUndeposit(),oaLoanapply.getBillCode());
		return this.execute(sql, oaLoanapply.getExistdeposit(),oaLoanapply.getUndeposit(),oaLoanapply.getBillCode());
	}
}
